using System;
using System.Collections.Generic;
using System.Text;
using DTO;
using DAL;

namespace BUS
{
    public class tbloaithanhtoanBUS
    {
        public static void Insert(tbloaithanhtoanDTO ltt)
        {
            tbloaithanhtoanDAL tbloaithanhtoanDAL = new tbloaithanhtoanDAL();
            tbloaithanhtoanDAL.Insert(ltt);
        }
        public static void Update(tbloaithanhtoanDTO ltt)
        {
            tbloaithanhtoanDAL tbloaithanhtoanDAL = new tbloaithanhtoanDAL();
            tbloaithanhtoanDAL.Update(ltt);
        }
        public static void Delete(int iD)
        {
            tbloaithanhtoanDAL tbloaithanhtoanDAL = new tbloaithanhtoanDAL();
            tbloaithanhtoanDAL.Delete(iD);
        }
        public static tbloaithanhtoanDTOColection GET(string Where, int PageIndex, int PageSize,
                                        string OrderBy, string OrderDirection,
                                        out int TotalRecords)
        {
            tbloaithanhtoanDAL tbloaithanhtoanDAL = new tbloaithanhtoanDAL();
            return tbloaithanhtoanDAL.GET(Where, PageIndex, PageSize,
                            OrderBy, OrderDirection, out TotalRecords);
        }
    }
}
